package skycenter.acars.app

import zeus.api.util.PatchMakeUtil
import zeus.api.ZeusApp
import javax.swing.{UIManager, JOptionPane}
import com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel

/**
 * 气象处理服务更新制作工具
 */
object SkymProcessorPatchMaker extends ZeusApp {
  UIManager.setLookAndFeel(new NimbusLookAndFeel())
  val option = JOptionPane.showConfirmDialog(null, "选择是运行SkymProcessorProxy补丁工具！",
    "选择运行补丁工具", JOptionPane.YES_NO_OPTION)
  if (option == JOptionPane.YES_OPTION) {
    ServicePatchMaker.main(null)
  }
  if (option == JOptionPane.NO_OPTION) {
    System.exit(0)
  }

  private object ServicePatchMaker extends PatchMakeUtil("grib2handler", "grib2", "/SkymeteoServer/target/"
    , List("application.conf"), "grib2handler-1.1.0.jar")

}
